package com.xiaoshuidi.cloud.module.report.convert.ajreport;

import com.xiaoshuidi.cloud.framework.common.pojo.PageResult;
import com.xiaoshuidi.cloud.module.report.controller.ajreport.vo.ReportSalesControlExportVO;
import com.xiaoshuidi.cloud.module.report.controller.ajreport.vo.ReportSalesControlRespVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReportSalesControlDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 台账报表 转换类
 */
@Mapper
public interface ReportSalesControlConvert {

    ReportSalesControlConvert INSTANCE = Mappers.getMapper(ReportSalesControlConvert.class);

    @Mapping(source = "vacantDate", target = "vacantDate", dateFormat = "yyyy-MM-dd")
    ReportSalesControlRespVO convert(ReportSalesControlDO infoDO);



    PageResult<ReportSalesControlRespVO> convertPage(PageResult<ReportSalesControlDO> page);

    List<ReportSalesControlExportVO> convertList(List<ReportSalesControlDO> list);

}

